<?php

$page = 'user';
require_once 'header.php';


?>
<?php

if (isset($_GET['status'])) {
    $status = $_GET['status'];
    if ($status == "wrong") {
?>
        <p style="color: red">Login failed.Wrong username or password!</p>
<?php } else if ($status == "saved") {
?>
        <p style="color: green">Account created!</p>
<?php }
} ?>
<script type="text/javascript">
    jQuery(document).ready(function(){
        jQuery("#login_form").validationEngine();
    });

</script>
<h3>Login here</h3> 
<form method="post" action="../actions/login.php" id="login_form" >
    <table class="table">
        <tr class="row_start"><td style="width: 50%">username: </td><td ><input type="text" class="validate[required] wide" name="username" id="username"/></td></tr>
        <tr class="row_alt_start"><td>Password: </td><td><input type="password" class="validate[required] wide" name="password" id="password" /></td></tr>
        <tr><td></td><td><input type="submit" value="submit" /></td></tr>
    </table>
</form>
<br/><br/><br/>
<a href="signup.php"><h3>CREATE AN ACCOUNT FOR FREE</h3></a>
<?php require_once('footer.php'); ?>